<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<span>设置cookie， 过期时间为 1h</span>
<?php 
$expire = time() + 60*60;
setcookie("user", "runoob", $expire);

//删除cookie
 	//setcookie("user", "", time()-$expire);
?>
</body>
</html>